package com.example.travel.service.impl;

import com.example.travel.entity.Hotel;
import com.example.travel.entity.Orderform;
import com.example.travel.entity.User;
import com.example.travel.entity.Write;
import com.example.travel.entity.dto.*;
import com.example.travel.mapper.AdminSelectMapper;
import com.example.travel.mapper.AdminUpdateMapper;
import com.example.travel.service.IAdminSelectService;
import com.example.travel.service.IAdminUpdateService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminUpdateService implements IAdminUpdateService {

    @Autowired
    private AdminUpdateMapper adminSelectMapper;

    @Override
    public boolean updateUserAudit(User user) {
        return adminSelectMapper.updateUserAudit(user);
    }

    @Override
    public boolean updateCheckIn(Orderform orderform) {
        return adminSelectMapper.updateCheckIn(orderform);
    }

    @Override
    public boolean updateOrderForm(Orderform orderform) {
        return adminSelectMapper.updateOrderForm(orderform);
    }

    @Override
    public boolean updateHotelInformation(HotelDTO hotelDTO) {
        return adminSelectMapper.updateHotelInformation(hotelDTO);
    }

    @Override
    public boolean updateScenicCheckIn(OrderformDTO orderformDTO) {
        return adminSelectMapper.updateScenicCheckIn(orderformDTO);
    }

    @Override
    public boolean updateScenicOrderForm(OrderformDTO orderformDTO) {
        return adminSelectMapper.updateScenicOrderForm(orderformDTO);
    }

    @Override
    public boolean updateScenicInformation(ScenicDTO scenicDTO) {
        return adminSelectMapper.updateScenicInformation(scenicDTO);
    }

    @Override
    public boolean updateScenicImg(ScenicImgDTO scenicImgDTO) {
        return adminSelectMapper.updateScenicImg(scenicImgDTO);
    }

    @Override
    public boolean updateFestivalInformation(FestivalDTO festivalDTO) {
        return adminSelectMapper.updateFestivalInformation(festivalDTO);
    }

    @Override
    public boolean updateFestivalImg(FestivalDTO festivalDTO) {
        return adminSelectMapper.updateFestivalImg(festivalDTO);
    }

    @Override
    public boolean updateReplyText(LeaveDTO leaveDTO) {
        return adminSelectMapper.updateReplyText(leaveDTO);
    }

}
